apiVersion: v1
kind: Service
metadata:
  name: {nginx-php}-deployment
  labels:
    app: {nginx-php}
spec:
  ports:
  - port: 80
  selector:
    app: {nginx-php}
    tier: {nginx-php}
  type: NodePort
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {nginx-php}-deployment
  labels:
    app: {nginx-php}
spec:
  replicas: 1
  selector:
    matchLabels:
      app: {nginx-php}
  template:
    metadata:
      labels:
        app: nginx-php}
    spec:
      containers:
      - name: {nginx-php}
        image: ccr.ccs.tencentyun.com/layatools/nginx-php:0.1
        ports:
        - containerPort: 80